﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CCWOnline.WebControls;
using LLFM.CAT.Service;

public partial class Admin_UserManager_UserList : AdminPage
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void Pager_PageChanging(object sender, PageChangingEventArgs e)
    {
        BindList(e.NewStartRecordIndex, Pager.PageSize);
    }

    private void BindList(int start, int number)
    {
        int count;
        int pageCount;
        userRepeater.DataSource = UserService.GetUserListForPage(1, Pager.PageIndex, Pager.PageSize, out count, out pageCount);
        userRepeater.DataBind();
        Pager.RecordCount = count;
    }
}